package edu.sandau.app.basic.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Date;

@Schema(description = "购物车实体")
public class Cart {
    @Schema(description = "购物车ID", hidden = true)
    private Long cartId;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "菜品ID")
    private Long dishId;

    @Schema(description = "数量")
    private Integer quantity;

    @Schema(description = "创建时间", hidden = true)
    private Date createTime;

    @Schema(description = "更新时间", hidden = true)
    private Date updateTime;

    public Long getCartId() {
        return cartId;
    }

    public void setCartId(Long cartId) {
        this.cartId = cartId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getDishId() {
        return dishId;
    }

    public void setDishId(Long dishId) {
        this.dishId = dishId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}